package com.dingqb.ktdemo.base


fun main() {

    println("begin")
    println(max(1, 222))
    println(kotlin.math.max(1, 222))
    println("end:thread==" + Thread.currentThread().name)
    var arrayList= ArrayList<String>()
    arrayList.add("1")
    arrayList.add("2")
    arrayList.add("3")
    for ((index, s) in arrayList.withIndex()) {
        System.err.println("$index $s $22")
    }




}

fun max(a: Int, b: Int): Int {
    if (a > b) {
        return a;
    } else return b

}

fun nullp(s: String?): Int? {
    return s?.length
}

